<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/defect/defectLookUp?lookupType=radio" onsubmit="return dwzSearch(this, 'dialog');">
    <div class="pageHeader">
        <div class="searchBar defect" >
            <ul class="searchContent">
                <li ><label><@label key="defectCode.C,colon">缺陷编号：</@label></label> <input type="text" class="textInput" name="defectCode" value="${condition.defectCode!''}" /></li>
                <li ><label><@label key="defectText.C,colon">缺陷描述：</@label></label> <input type="text" class="textInput" name="defectText" value="${condition.defectText!''}" /></li>
            </ul>
            <ul class="searchContent">
                <li ><label><@label key="defectLevelCode.C,colon">缺陷等级编号：</@label></label> <input type="text" class="textInput" name="defectLevelCode" value="${condition.defectLevelCode!''}" /></li>
                <li ><label><@label key="responsibilityTypeCode.C,colon">责任类型编号：</@label></label> <input type="text" class="textInput" name="responsibilityTypeCode" value="${condition.responsibilityTypeCode!''}" /></li>
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</form>
<div class="pageContent">
    <table class="table" width="100%" layoutH="135">
        <thead>
            <tr>
                <th width="100" orderField="defectCode"<#if (page.orderField?? && page.orderField == 'defectCode')>class="${page.orderDirection!''}"</#if>><@label key="defectCode.C">缺陷编号</@label></th>
                <th width="100" orderField="defectText"<#if (page.orderField?? && page.orderField == 'defectText')>class="${page.orderDirection!''}"</#if>><@label key="defectText.C">缺陷描述</@label></th>
                <th width="50" orderField="backgroundColor"<#if (page.orderField?? && page.orderField == 'backgroundColor')>class="${page.orderDirection!''}"</#if>><@label key="backgroundColor.C">背景色</@label></th>
                <th width="50" orderField="lockFlag"<#if (page.orderField?? && page.orderField == 'lockFlag')>class="${page.orderDirection!''}"</#if>><@label key="lockFlag.C">锁定标记</@label></th>
                <th width="50" orderField="pictureFlag"<#if (page.orderField?? && page.orderField == 'pictureFlag')>class="${page.orderDirection!''}"</#if>><@label key="pictureFlag.C">图形采集标志</@label></th>
                <th width="80"><@label key="selected_first.C">请选择</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as defect>
            <tr target="defect_code" rel="${defect.defectCode!''}">
                <td>${defect.defectCode!''}</td>
                <td>${defect.defectText!''}</td>
                <td>
                    <div style="width: 15px; height: 15px; -moz-border-radius: 10px ; 
                    -webkit-border-radius: 10px; border-radius: 10px; background:${defect.backgroundColor!''};">
                    </div>
                </td>
                <td><#if (defect.lockFlag == 1)><@label key="yes.C">是</@label><#else><@label key="no.C">否</@label></#if></td>
                <td><#if (defect.pictureFlag == 1)><@label key="yes.C">是</@label><#else><@label key="no.C">否</@label></#if></td>
                <td><a class="btnSelect bringBack" value="defectCode:'${defect.defectCode!''}', defectText: '<@json_escape>${defect.defectText!''}</@json_escape>'" >选择</a></td>        
            </tr>
            </#list> <#else>
                <tr >
                <td colspan="7"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if> <#else>
            <tr >
                <td colspan="7"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/dialogPanelBar.html">
</div>